entry: Use correct state when computing icon padding
authorBenjamin Otte <otte@redhat.com>
Tue, 25 Nov 2014 20:57:58 +0000 (21:57 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Nov 2014 12:53:57 +0000 (13:53 +0100)
gtk/gtkentry.c

index 7f334ba299df628878fa25dd72455ca550f98506..4f08c91a67e11fa7aa09dcc144e1ac218f4386dd 100644 (file)
@@ -2840,8 +2840,8 @@ get_icon_width (GtkEntry             *entry,
     return 0;
 
   context = gtk_widget_get_style_context (GTK_WIDGET (entry));
-  state = gtk_style_context_get_state (context);
   gtk_entry_prepare_context_for_icon (entry, context, icon_pos);
+  state = gtk_style_context_get_state (context);
   gtk_style_context_get_padding (context, state, &padding);
 
   _gtk_icon_helper_get_size (icon_info->icon_helper, context,